Return the shadow of the guest's EFER instead of the VMCB. This helps
with things such as the unlikely event the guest wants to check EFER.LME
immediately after setting it (The VMCB's EFER.LME remains clear until
the guest enables paging).
Signed-off-by: Travis Betak <travis.betak@amd.com>
switch ((u32)regs->ecx)
{
case MSR_EFER:
- msr_content = vmcb->efer;
- msr_content &= ~EFER_SVME;
+ msr_content = v->arch.hvm_svm.cpu_shadow_efer;
break;
#ifdef __x86_64__